package org.example.domain.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

@Data
@NoArgsConstructor
@AllArgsConstructor
@TableName("category")
public class Category {

    @TableId(value = "id",type = IdType.AUTO)
    private Integer id;

    //分类名
    private String name;
    //父分类id，如果没有父分类为-1
    private Integer pid;
    //状态0:正常,1禁用
    private Integer status;

    private String remark;

    private Date createTime;

    private Date updateTime;
    //删除标志（0代表未删除，1代表已删除）
    private Integer delFlag;

}
